//商品列表
export const getGoodsListByScore = `
query($page:Int,$goods_type:Int,$keywords:String,$driver_id:Int){ 
  getGoodsListByScore(page:$page,goods_type:$goods_type,keywords:$keywords,driver_id:$driver_id){
    list{
        id
        name
        image
        score
        recharge_money
        price
        stock
        cart_nums
        cart_gem_nums
        cart_money_nums
    }
    total
    lastpage
    count_nums
    count_score
  }
}`;
//分类
export const getGoodsType = `
query{ 
  getGoodsType{
    id
    name
  }
}`;
// 商品列表
export const getScoreGoodsList = `
query($region_id:Int,$page:Int){ 
  getScoreGoodsList(page:$page,region_id:$region_id){
    list{
      id
      name
      image
      score
      recharge_money
      price
      stock
      cart_nums
      cart_gem_nums
      cart_money_nums
  }
  total
  lastpage
  }
}`;
//商品详情
export const getGoodsInfo = `
query($id:Int,$driver_id:Int){ 
  getGoodsInfo(id:$id,driver_id:$driver_id){
        id
        name
        image
        score
        stock
        content
        recharge_money
        price
        cart_gem_nums
        cart_money_nums
        score_total
        recharge_money_total
  }
}`;
//购物车-列表
export const getCartList = `
query($driver_id:Int){ 
  getCartList(driver_id:$driver_id){
    list{
        id
        goods_id  
        nums
        goods_name
        goods_score
        goods_price
        goods_image
        goods_cid
        type
    }
    nums
    score
    money
    recharge_money
  }
}`;
//获取订单详情
export const getOrderInfo = `
query($order_id:Int){ 
  getOrderInfo(order_id:$order_id){
    id
    order_sn
    createtime
    order_score
    order_price
    order_recharge_money
    order_goods{
        id
        nums
        price
        score
        recharge_moneg
        goods_name
        goods_image
        type
    }
  }
}`;
//我的蓝宝石
export const getGemLog = `
query($driver_id:Int,$page:Int,$start:String,$end:String){ 
  getGemLog(driver_id:$driver_id,page:$page,start:$start,end:$end){
    list{
      id
      score
      before
      after
      memo
      createtime
  }
  total
  lastpage
  score
  count
  use
  }
}`;
//我的福利栏
export const getDriverGoodsCount = `
query($driver_id:Int){ 
  getDriverGoodsCount(driver_id:$driver_id){
    goods_nums
  }
}`;
//当前可以获取的商品列表
export const getSubscribeGoodsList = `
query($driver_id:Int,$page:Int,$goods_type:Int,$price:Float,$subscribe_id:Int){ 
  getSubscribeGoodsList(driver_id:$driver_id,page:$page,goods_type:$goods_type,price:$price,subscribe_id:$subscribe_id){
    list{
      id
      name
      image
      score
      recharge_money
      price
      stock
      cart_nums
  }
  total
  lastpage
  }
}`;
//获取福利购物车
export const getSubscribeCart = `
query($subscribe_id:Int){ 
  getSubscribeCart(subscribe_id:$subscribe_id){
    list{
      id
      goods_id  
      nums
      goods_name
      goods_score
      goods_price
      goods_image
  }
  nums
  score
  money
  recharge_money
  }
}`;
//获取活动列表
export const getActivityList = `
query($region_id:Int){ 
  getActivityList(region_id:$region_id){
    title
    subtitle
    image
    page
    button_text
    status_text
    status_color
    button_color
    bg_color
    title_color
    subtitle_color
  }
}`;
//检测是否是新用户
export const checkXin = `
query($driver_id:Int){ 
  checkXin(driver_id:$driver_id){
    is_new
  }
}`;
//获取可得蓝宝石数
export const getGem = `
query($driver_id:Int,$money:Float){ 
  getGem(driver_id:$driver_id,money:$money){
    gem
    is_check
    gem_bei
  }
}`;